#ifndef I2C_H
#define I2C_H

#include "common.h"

typedef enum {
  Received = 0,
  Refuse = 1,
} Bit;

void i2c_start(void);

void i2c_stop(void);

void i2c_write(u8 byte);

u8 i2c_read(void);

void i2c_write_ack(_Bool bit);

Bit i2c_read_ack(void);

#endif
